#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr1[3] = { 1,2,3 };
	int arr2[3] = { 3,2,1 };
	int t[3];
	int i;
	for (i = 0; i < 3; i++)
	{
		t[i] = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = t[i];
	}
	for (i = 0; i < 3; i++)
		printf("%d ", arr1[i]);
	printf("\n");
	for (i = 0; i < 3; i++)
		printf("%d ", arr2[i]);
	return 0;
}


